﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace myFinance.Controls
{
    public partial class SummaryScreen : UserControl
    {
        public SummaryScreen()
        {
            InitializeComponent();

            this.Spent = DAL.DALFactory.GetDAL<DAL.SqlCeDAL>().GetTotalExpence();
            //this.Remaining = DAL.DALFactory.GetDAL<DAL.SqlCeDAL>().GetRemaining();
        }

        protected double m_spent;
        public double Spent
        {
            set
            {
                m_spent = value;
                lblSpentVal.Text = value.ToString();
            }
            get
            {
                return m_spent;
            }
        }

        protected double m_remaining;
        public double Remaining
        {
            set
            {
                m_remaining = value;
                lblRemaningVal.Text = value.ToString();
            }
            get
            {
                return m_remaining;
            }
        }
    }    
}
